.class public Lcom/estrongs/android/ui/adapter/f;
.super Landroid/widget/BaseAdapter;
.source "ListAdapter_GestureItem.java"


# instance fields
.field private a:Landroid/content/Context;

.field private b:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    .line 1
    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/ui/adapter/f;->b:Z

    .line 3
    iput-object p1, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    .line 4
    invoke-static {}, Lcom/estrongs/android/ui/guesture/b;->b()Z

    move-result p1

    if-nez p1, :cond_0

    .line 5
    invoke-static {}, Lcom/estrongs/android/ui/guesture/b;->c()V

    :cond_0
    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/adapter/f;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    return-object p0
.end method

.method private a(Landroid/gesture/Gesture;)Landroid/graphics/Bitmap;
    .locals 3

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    const/high16 v1, 0x42600000    # 56.0f

    invoke-static {v0, v1}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v0

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    const/high16 v2, 0x40800000    # 4.0f

    invoke-static {v1, v2}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v1

    const v2, 0x59009ae2

    .line 4
    invoke-static {p1, v0, v0, v1, v2}, Lcom/estrongs/android/ui/guesture/c;->a(Landroid/gesture/Gesture;IIII)Landroid/graphics/Bitmap;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method public a(Z)V
    .locals 0

    .line 6
    iput-boolean p1, p0, Lcom/estrongs/android/ui/adapter/f;->b:Z

    .line 7
    invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method public a()Z
    .locals 1

    .line 5
    iget-boolean v0, p0, Lcom/estrongs/android/ui/adapter/f;->b:Z

    return v0
.end method

.method public getCount()I
    .locals 2

    .line 1
    invoke-static {}, Lcom/estrongs/android/ui/guesture/b;->a()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 2
    invoke-virtual {p0}, Lcom/estrongs/android/ui/adapter/f;->a()Z

    move-result v1

    if-nez v1, :cond_0

    goto :goto_0

    .line 3
    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    return v0

    :cond_1
    :goto_0
    const/4 v0, 0x0

    return v0
.end method

.method public bridge synthetic getItem(I)Ljava/lang/Object;
    .locals 0

    .line 1
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/adapter/f;->getItem(I)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public getItem(I)Ljava/lang/String;
    .locals 1

    .line 2
    invoke-static {}, Lcom/estrongs/android/ui/guesture/b;->a()Ljava/util/List;

    move-result-object v0

    invoke-interface {v0, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 2

    if-nez p2, :cond_0

    .line 1
    iget-object p2, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const p3, 0x7f0c01c8

    const/4 v0, 0x0

    invoke-virtual {p2, p3, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 2
    :cond_0
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/adapter/f;->getItem(I)Ljava/lang/String;

    move-result-object p3

    .line 3
    invoke-static {p3}, Lcom/estrongs/android/ui/guesture/b;->b(Ljava/lang/String;)Landroid/gesture/Gesture;

    move-result-object v0

    const v1, 0x7f090b93

    .line 4
    invoke-virtual {p2, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 5
    invoke-direct {p0, v0}, Lcom/estrongs/android/ui/adapter/f;->a(Landroid/gesture/Gesture;)Landroid/graphics/Bitmap;

    move-result-object v0

    invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    const v0, 0x7f090824

    .line 6
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 7
    iget-object v1, p0, Lcom/estrongs/android/ui/adapter/f;->a:Landroid/content/Context;

    invoke-static {v1, p3}, Lcom/estrongs/android/ui/guesture/c;->a(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    invoke-virtual {v0, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const p3, 0x7f09029f

    .line 8
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/Button;

    .line 9
    new-instance v0, Lcom/estrongs/android/ui/adapter/f$a;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/adapter/f$a;-><init>(Lcom/estrongs/android/ui/adapter/f;I)V

    invoke-virtual {p3, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p3, 0x7f0903c5

    .line 10
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/Button;

    .line 11
    new-instance v0, Lcom/estrongs/android/ui/adapter/f$b;

    invoke-direct {v0, p0, p1}, Lcom/estrongs/android/ui/adapter/f$b;-><init>(Lcom/estrongs/android/ui/adapter/f;I)V

    invoke-virtual {p3, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object p2
.end method
